package jtk.project4.fleet.field;

import jtk.project4.fleet.domain.Employee;
import jtk.project4.fleet.domain.Equipment;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Align;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.NumberField;
import nl.coderight.jazz.form.field.SelectField;
import nl.coderight.jazz.form.field.TextField;

public class SpecificationsOtherDetailsCustom extends GroupControl<Equipment>{
	
	private TextField AirFilterTypeField;
	private TextField WiperBladeLField;
	private TextField WiperBladeRField;
	private TextField WiperBladeRRField;
	private TextField HeadlampTypeField;
	private TextField SparkPlugTypeField;
	private TextField BatteryTypeField;
	private TextField ClickToDefineField;
	private TextField ClickToDefineField2;
	private TextField ClickToDefineField3;
	private TextField FuelTypeField;
	private TextField TranFlTypeField;
	private TextField BrakeFluid;
	private TextField GrossWeightField;
	private TextField EngineField;
	private TextField Misc1Field;
	private TextField Misc2Field;
	private TextField ClickToDefine4Field;
	
	public SpecificationsOtherDetailsCustom(String bindID){
		setTitle("header.Specifications");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		AirFilterTypeField = new TextField("Air Filter Type", 15);
		WiperBladeLField = new TextField("Wiper Blade L", 15);
		WiperBladeRField = new TextField("Wiper Blade R", 15);
		WiperBladeRRField = new TextField("Wiper Blade RR", 15);
		HeadlampTypeField = new TextField("Head lamp Type", 15);
		SparkPlugTypeField = new TextField("Spark Plug Type", 15);
		ClickToDefineField = new TextField("Click To Define", 15);
		ClickToDefineField2 = new TextField("Click To Define", 15);
		ClickToDefineField3 = new TextField("Click To Define", 15);
		FuelTypeField = new TextField("FuelType", 15);
		TranFlTypeField = new TextField("Tran. Fl Type", 15);
		BrakeFluid = new TextField("BrakeFluid", 15);
		GrossWeightField = new TextField("Wheelbase", 15);
		EngineField = new TextField("Engine", 15);
		Misc1Field = new TextField("Misc1", 15);
		Misc2Field = new TextField("Misc2", 15);
		ClickToDefine4Field = new TextField("Click To Define", 15);
		BatteryTypeField = new TextField("Battery Type", 15);
	}
	
	private void createLayout() {
		// TODO Auto-generated method stub
		setLayout(new FormLayout())

		.addLabel("label.Air Filter Type")		.addField(AirFilterTypeField)
		.addLabel("label.Spark Plug Type")		.addField(SparkPlugTypeField)
		.addRow()
		.addLabel("label.Wiper Blade L")		.addField(WiperBladeLField)
		.addLabel("label.Battery Type")			.addField(BatteryTypeField)
		.addRow()
		.addLabel("label.Wiper Blade R")		.addField(WiperBladeRField)
		.addLabel("label.Click To Define")		.addField(ClickToDefineField)
		.addRow()
		.addLabel("label.Wiper Blade RR")		.addField(WiperBladeRRField)
		.addLabel("label.Click To Define")		.addField(ClickToDefineField2)
		.addRow()
		.addLabel("label.Headlamp Type")		.addField(HeadlampTypeField)
		.addLabel("label.Click To Define")		.addField(ClickToDefineField3)
		.addRow()
		.addHorizontalSeparator()
		.addRow()
		.addLabel("label.Fuel Type")			.addField(FuelTypeField)
		.addLabel("label.Engine")				.addField(EngineField)
		.addRow()
		.addLabel("label.Tran. Fl Type")		.addField(TranFlTypeField)
		.addLabel("label.Misc1")				.addField(Misc1Field)
		.addRow()
		.addLabel("label.BrakeFluid")			.addField(BrakeFluid)
		.addLabel("label.Misc2")				.addField(Misc2Field)
		.addRow()
		.addLabel("label.GrossWeight")			.addField(GrossWeightField)
		.addLabel("label.Click To Define")		.addField(ClickToDefine4Field)
		.addRow()
		
		;	
	}
}